repo_del:
  cmd.run:
    - cwd: /etc/yum.repos.d
    - names:
      - rm -fr *.repo
    - unless: test -f centos-server.repo

centos-server.repo:
  file.managed:
    - name: /etc/yum.repos.d/centos-server.repo
    - source: salt://system_file/centos-server.repo
    - requires:
      - cmd.run: repo_del
